export default {
  data() {
    return {
      pageSizes: [10, 100, 200, 300, 400],
      pageSize: null,
      pageLayout: "total, sizes, prev, pager, next, jumper",
      total: 0
    };
  },
  created() {
    if (this.pagination) {
      this.pageSize = this.pageSizes[0];
      this.apiSetting.data.pageNo = 1;
      this.apiSetting.data.pageSize = this.pageSize;
    }
  },
  methods: {
    handleSizeChange(val) {
      this.pageSize = val;
      this.apiSetting.data.pageSize = val;
      this.apiSetting.data.pageNo = 1;
      this.loadData();
    }
    // handleCurrentChange(val) {
    //   this.apiSetting.data.pageNo = val;
    //   this.loadData();
    // }
  }
};
